package top.cardone.api.v1.usercenter.user

import org.apache.commons.lang3.StringUtils
import top.cardone.usercenter.service.UserService
import top.cardone.context.ApplicationContextHolder
import top.cardone.core.CodeException

class r0002 implements java.io.Serializable {
    def input(input) {
        input
    }

    def validation(input) {
    }

    def func(input) {
		['data': ApplicationContextHolder.getBean(UserService.class).findListByKeyword(input)]
    }

    def output(output) {
        def newOutput = [:]

        newOutput.label = output['name']
        newOutput.value = output['user_code']

        newOutput
    }
}